/*
 *
 * @ProjectName:    my_umi_app
 * @Package:
 * @ClassName:      blog_setting_api
 * @Description:    TypeScript文件
 * @Author:         SuPeiSen
 * @CreateDate:     2021/2/9 6:14 下午
 * @UpdateDate:     2021/2/9 6:14 下午
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */

import { Requests } from '@/utils/requests';
import { BlogSettingType } from '@/type/blog_setting_blog';
import { ApiPath, BlogApiPath } from '@/config/api_config';

/**
 * 获取设置
 * @constructor
 */
export const BlogGetSettingApi = async () => {
  return await Requests.defaults.httpNo<BlogSettingType>(
    'get',
    BlogApiPath.blogGetSetting,
  );
};

/**
 * 获取博主简介
 * @param content
 * @constructor
 */
export const BlogGetBloggerInfoApi = async () => {
  return await Requests.defaults.http<{
    blogger_content: string;
  }>('get', BlogApiPath.blogGetBloggerInfo);
};
